﻿using System;
using System.Data;
using System.Collections;
using CE.Database;

/// <summary>
/// Summary description for QuotesSummaryDB
/// </summary>
/// 
namespace CE.Quotes
{
    public class QuotesSummaryDB
    {
        public QuotesSummaryDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public DataSet GetQuoteSummaryCount(string InsuranceType, Int16 ReportType, string ReportDate1, string ReportDate2)
        {
            MyDatabase _db = new MyDatabase();
            string _spName = "[sprocCXTHQuoteSummaryCountReportSelectedList]";
            SortedList _sPara = new SortedList();

            _sPara.Add("@InsuranceType", InsuranceType);
            _sPara.Add("@ReportType", ReportType);
            _sPara.Add("@ReportDate1", ReportDate1);
            _sPara.Add("@ReportDate2", ReportDate2);

            return _db.GetDataSet(_spName, _sPara);
        }

        public DataSet GetReRunQuoteSummaryCount(Int16 ReportType, string ReportDate1, string ReportDate2)
        {
            MyDatabase _db = new MyDatabase("GGR_DBConnectionString");
            string _spName = "[sprocReportsCXCRMReRunQuotesSelectedList]";
            SortedList _sPara = new SortedList();

            _sPara.Add("@ReportType", ReportType);
            _sPara.Add("@ReportDate1", ReportDate1);
            _sPara.Add("@ReportDate2", ReportDate2);

            return _db.GetDataSet(_spName, _sPara);
        }

    }
}